import http from "@/http"
import type { noteTable } from "./noteTable"

//添加
export const addNoteApi  = (parm:noteTable)=>{
    return http.post("/api/note/addnote",parm)
}

//查询笔记列表
export const getNoteApi = (userId:string)=>{
    return http.get("/api/note/getNote",{ userId })
}
//更新笔记
export const updateNoteApi = (note: noteTable) => {
    return http.put("/api/note/updateNote", note);
}
//删除笔记
export const deleteNoteApi =(noteId:string)=>{
    return http.delete(`/api/note/delete/${noteId}`)
}
